Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snappyjs

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snappyjs

JavaScript implementation of Google's Snappy compression library

  • 0.6.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
251K
increased by10.85%
Maintainers
1
Weekly downloads
 
Created

What is snappyjs?

The snappyjs npm package is a JavaScript implementation of Google's Snappy compression algorithm. It provides functionalities for compressing and decompressing data efficiently.

What are snappyjs's main functionalities?

Compression

This feature allows you to compress a given input buffer using the Snappy compression algorithm. The code sample demonstrates how to compress a simple string 'Hello, world!' into a compressed buffer.

const snappy = require('snappyjs');
const input = Buffer.from('Hello, world!');
const compressed = snappy.compress(input);
console.log(compressed);

Decompression

This feature allows you to decompress a given compressed buffer back to its original form. The code sample demonstrates how to decompress a buffer containing compressed data.

const snappy = require('snappyjs');
const compressed = Buffer.from([...] /* some compressed data */);
const decompressed = snappy.uncompress(compressed);
console.log(decompressed.toString());

Other packages similar to snappyjs

Keywords

FAQs

Package last updated on 11 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc